void setup(){

}

void loop(){
  if (analogRead(A2) < 32) {
    analogWrite(10,0);

  }
  if (32 <= analogRead(A2) && analogRead(A2) < 256) {
    analogWrite(10,64);

  }
  if (256 <= analogRead(A2) && analogRead(A2) < 512) {
    analogWrite(10,128);

  }
  if (512 <= analogRead(A2) && analogRead(A2) < 768) {
    analogWrite(10,192);

  }
  if (analogRead(A2) >= 768) {
    analogWrite(10,256);

  }

}
